<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>客户添加</title>
</head>
<body>
<form class="layui-form" lay-filter="guanliForm" id="add_guanli_Form" action="" style="padding:15px 10px;">
    <input type="hidden" name="kh_Id">
    <div class="layui-form-item">
        <label class="layui-form-label">客户名称</label>
        <div class="layui-input-block">
            <input type="text" name="kh_name" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">机构代码</label>
        <div class="layui-input-block">
            <input type="text" name="kh_jgdm" required lay-verify="required" placeholder="请输入机构代码" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">所属行业</label>
        <div class="layui-input-block">
            <input type="text" name="kh_sshy" required  lay-verify="required" placeholder="请输入行业" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">信用等级</label>
        <div class="layui-input-block">
            <input type="text" name="kh_xydj" required  lay-verify="required" placeholder="请输入等级" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">客户类别</label>
        <div class="layui-input-block">
            <input type="text" name="kh_khlb" required  lay-verify="required" placeholder="请输入类别" autocomplete="off" class="layui-input">
        </div>
    </div>
    <!--<div class="layui-form-item">-->
        <!--<label class="layui-form-label">是否锁定</label>-->
        <!--<div class="layui-input-block">-->
            <!--<input type="checkbox" name="locked" value="1" lay-skin="switch">-->
        <!--</div>-->
    <!--</div>-->
    <!--<div class="layui-form-item">-->
        <!--<label class="layui-form-label">所属机构</label>-->
        <!--<div class="layui-input-block" >-->
            <!--<select name="kh_ssjg" id="khSsjg" xm-select="khSsjg" xm-select-direction="down">-->
                <!--<option value="-1">请选择</option>-->
            <!--</select>-->
        <!--</div>-->
    <!--</div>-->
    <div class="layui-form-item">
        <label class="layui-form-label">客户经理</label>
        <div class="layui-input-block" >
            <select name="kh_khjl" id="khKhjl" xm-select="khKhjl" xm-select-direction="down">
                <option value="-1">请选择</option>
            </select>
        </div>
    </div>
    <!--<script>-->
        <!--layui.form.render();-->
        <!--$.get("http://localhost:8888/mechanism/search",function(data){-->
            <!--$.each(data,function(){-->
                <!--var opt = $("<option></option>").appendTo("#khSsjg");-->
                <!--opt.text(this.kh_ssjg).val(this.kh_Id);-->
            <!--});-->
            <!--layui.formSelects.render()-->
        <!--});-->

    <!--</script>-->
    <script>
        layui.form.render();
        $.get("http://localhost:8888/admin/search",function(data){
            $.each(data,function(){
                var opt = $("<option></option>").appendTo("#khKhjl");
                opt.text(this.username).val(this.username);
            });
            layui.formSelects.render()
        });

    </script>

</body>
</html>